package edu.turtlekit2.demos.perso1;

import java.awt.Color;
import java.awt.Graphics;

import org.omg.CORBA._IDLTypeStub;

public class MAJAffichage{
	private static MAJAffichage				_singAff = null;
	private static int										_id = -1;
	
	public static MAJAffichage getInstance(int id){
		if(_singAff == null){
			_singAff = new MAJAffichage();
			_id = id;
		}
		
		return _singAff;
	}
	
	public void refreshScreen(Graphics g, int id,int taille){
		if(_id == id){
			g.setColor(Color.black);
			g.fillRect(0, 0, 700*taille, 300*taille);
		}
	}

	public void initRefresh(){
		_id = -1;
	}
}